package com.zero.test2;

public class Dog extends Animal implements Swim {
    public Dog() {
    }

    public Dog(String name, String age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println("狗在啃骨头");
    }

    public void lookHome() {
        System.out.println(getColor() + "色的" + getAge() + "岁的狗" + getName() + "在看家");
    }


    @Override
    public void swim() {
        System.out.println(getColor() + "色的" + getAge() + "岁的狗狗" + getName() + "在游泳");

    }
}
